package com.jiazhong.basic.pack0316.coll;

import java.util.HashSet;

// hash结构 HashMap HashSet Hashtable ....
public class DemoB {
    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>();
        set.add("a"); // hash:97
        set.add("b"); // hash:98
        set.add("q");
        String key = "q";
        int h;
        int r = (h = key.hashCode()) ^ (h >>> 16);
        System.out.println(r);
        System.out.println(15 & 113);
    }
}
